class Restaurant:
    '''餐厅实体类'''
    def __init__(self, restaurant_name, cuisine_type):
        self.restaurant_name = restaurant_name
        self.cuisine_type = cuisine_type

    def describe_restaurant(self):
        print(f"餐厅名称：{self.restaurant_name}")
        print(f"主打食物类型：{self.cuisine_type}")

    def open_restaurant(self):
        print("当前时间段餐厅正在营业")



# 练习 9.1
# restaurant = Restaurant("海底捞", "火锅")

# print(f"餐厅名称：{restaurant.restaurant_name}")
# print(f"主打食物类型：{restaurant.cuisine_type}")

# restaurant.describe_restaurant()
# restaurant.open_restaurant()


# 练习 9.2
restaurant = Restaurant("海底捞", "火锅")
restaurant1 = Restaurant("众稻八宝粥", "快餐")
restaurant2 = Restaurant("阿水大杯茶", "冷饮")

restaurant.describe_restaurant()
restaurant1.describe_restaurant()
restaurant2.describe_restaurant()